package com.hanserwei.community.entity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "抄表记录展示对象")
public class MeterRecordVO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "记录ID")
    private Integer id;

    @Schema(description = "表计类型ID")
    private Integer typeId;

    @Schema(description = "表计类型名称")
    private String typeName;

    @Schema(description = "房屋ID")
    private Integer houseId;

    @Schema(description = "房屋信息")
    private HouseVO house;

    @Schema(description = "业主信息")
    private OwnerBriefVO owner;

    @Schema(description = "上次读数")
    private BigDecimal previousReading;

    @Schema(description = "本次读数")
    private BigDecimal currentReading;

    @Schema(description = "上次抄表时间")
    private LocalDateTime previousTime;

    @Schema(description = "本次抄表时间")
    private LocalDateTime currentTime;

    @Schema(description = "校验时间")
    private LocalDateTime checkTime;

    @Schema(description = "表计编号")
    private String meter;

    @Schema(description = "备注")
    private String remarks;
}
